package com.lpf.mybatis.config;

import lombok.Data;

@Data
public class Configuration {

    private String scanPath;

    private MapperRegistry mapperRegistry = new MapperRegistry();

    public Configuration scanPath(String scanPath) {
        this.scanPath = scanPath;
        return this;
    }

    public void build() {
        if (null == scanPath || scanPath.length() < 1) {
            throw new RuntimeException("scan path is required.");
        }
    }

}
